import org.omg.PortableServer.ThreadPolicyOperations;

public class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 1; i <= 30; i++) {
            try {
                Thread.sleep(100);
                System.out.println("th1:" + i);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
